/*******************************************************************************
 * Copyright (c) 2011 LegSem.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl-3.0.txt
 * 
 * Contributors:
 *     LegSem - initial API and implementation
 ******************************************************************************/
package com.legstar.eci.xmi.model;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("typeMapping")
public class BindingTypeMapping {

	@XStreamAsAttribute
	private String encoding;
	
	@XStreamImplicit()
	private List < BindingTypeMap > typeMaps;

	/** {@inheritDoc}*/
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("[");
		sb.append("encoding" + ":" + encoding + "");
		sb.append(",");
		sb.append("typeMaps" + ":" + typeMaps + "");
		sb.append("]");
		return sb.toString();
	}

	/**
	 * @return the encoding
	 */
	public String getEncoding() {
		return encoding;
	}

	/**
	 * @return the typeMaps
	 */
	public List<BindingTypeMap> getTypeMaps() {
		return typeMaps;
	}

}
